package com.topnav.mc.admin.service;

import com.alibaba.fastjson2.JSONObject;
import com.topnav.mc.admin.entity.OperateLog;
import com.topnav.mc.admin.entity.bean.OperateLogBean;
import com.topnav.mc.admin.entity.enums.EnumLogType;
import com.topnav.mc.admin.entity.enums.EnumOperateFunction;
import com.topnav.mc.admin.entity.param.OperateLogParam;
import com.topnav.mc.base.mc.IMcService;

import java.util.Map;

/**
 * @Author: kenny
 * @Date: 2024/3/29 17:21
 */
public interface IOperateLogService extends IMcService<OperateLog, OperateLogBean, OperateLogParam> {

    boolean saveLog(EnumLogType type, EnumOperateFunction function);

    boolean saveLog(EnumLogType type, EnumOperateFunction function,String context);

    boolean saveLog(EnumLogType type, EnumOperateFunction function, Map<String,Object> context);

    boolean saveLog(EnumLogType type, EnumOperateFunction function, JSONObject context);

    boolean saveLog(EnumLogType type, EnumOperateFunction function, Object context);
}
